const http=require("http");
const url=require("url")


var reqUrl="http://localhost:8081/"

var options=url.parse(reqUrl)
options.method="POST";


var reqObj=http.request(options,(res)=>{
    
})


var userName=process.argv[2];
var passWord=process.argv[3];

var userInfo={userName:userName,passWord:passWord};
var userStr=JSON.stringify(userInfo);
reqObj.write(userStr);//向请求体写入数据
reqObj.end();